<script type="text/javascript">
function pop_it(the_form) {
   my_form = eval(the_form);
   window.open("", "popup", "height=540,width=640,menubar='no',toolbar='no',location='no',status='no',scrollbars='no'");
   my_form.target = "popup";
   my_form.submit();
   $('#new_mail').html("");
}
</script>
<div id="email">
<h3>Envoyer un mail</h3>
<form name="email_form" method="post" action="/index.php/comments/send_email">
<h4>Vous</h4>
Votre nom : <br/><?php echo form_input('name_from');?>
<br/>Votre email : <br/><?php echo form_input('email_from');?>
<br/>Votre message : <br/><?php echo form_textarea(array('name' => 'message', 'id' => 'message', 'cols' => '35', 'rows' => '3'));?>
<h4>Destinaire</h4>
Son email : <br/><?php echo form_input('email_to');?>
<input type="button" onclick="pop_it(email_form);" value="Envoyer" />
</form>
</div>